package com.yf.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 账户实体
 * 表名 account
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 16 13:57:31 CST 2018
 */
@Setter
@Getter
public class AccountEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //表ID
    private Long id;
    //用户ID
    private Long userId;
    //ENUM-类型:'代金券','预存款','抵扣券'
    private Integer type;
    //数量
    private BigDecimal number;

    public AccountEntity(){

    }

    public AccountEntity(Long userId, Integer type) {
        this.userId = userId;
        this.type = type;
    }
}
